package com.usian.user.feign;/*
 *文件名：WmUserFeign
 *创建者：宋璟
 *创建时间:2023/2/8 14:01
 *描述: TODO
 */

import com.usian.model.common.dtos.ResponseResult;
import com.usian.model.media.pojos.WmUser;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;

@FeignClient("leadnews-wemedia")
public interface WemediaFeign {

    @PostMapping("api/vi/user/save")
    public ResponseResult save(@RequestBody WmUser dto);

    @GetMapping("api/vi/user/findByName/{name}")
    public WmUser findByName(@PathVariable("name") String name);


    @PostMapping("api/vi/user/updateAuthorId")
    ResponseResult updateAuthorId(@RequestBody WmUser dto);
}
